import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import reqFum from './utils/api.js'
import store from './store/index.js'
import common  from './utils/common.js'

uni.$req = reqFum
Vue.config.productionTip = false
Vue.prototype.$noMultipleClicks = common.noMultipleClicks;
App.mpType = 'app'



uni.$showMsg = function(title, duration = 1500){
  uni.showToast({
    title,
    duration:1500,
    icon:'none'
  })
}

const app = new Vue({
    ...App,
    store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif